package day240303.e2;

import day240303.e1.Student;

public class StudentWithDogsText {
    public static void main(String[] args) {
        Dog dog1 = new Dog();
        Dog dog2 = new Dog();
        Dog dog3 = new Dog();

        dog1.id = 1;
        dog1.name = "dog1";
        dog1.color = "red";
        dog2.id = 2;
        dog2.name = "dog2";
        dog2.color = "black";
        dog3.id = 3;
        dog3.name = "dog3";
        dog3.color = "purple";


        // new 2 student
        StudentWithDogs s1 = new StudentWithDogs();
        StudentWithDogs s2 = new StudentWithDogs();
        s1.id = "123";
        s1.name = "STU-1";
        s1.age = 19;
        s1.dogs = new Dog[]{dog1};

        s2.id = "456";
        s2.name = "STU-2";
        s2.age = 20;
        s2.dogs = new Dog[]{dog2, dog3};

        s1.show();
        s1.showDogs();
        s2.show();
        s2.showDogs();

    }
}
